package com.wollo.mapper;

import com.wollo.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    //TODO 根据账户查询用户信息
    @Select("select * from t_user where username=#{username} or phone=#{username} or email=#{username}")
    User selectUserInfoByUserNameMapper(String username);

    //TODO 新增用户
    int insertUser(User user);

    //TODO 根据ID查询用户
    User selectTUserByUid(Long uid);

    //TODO 修改用户
    int updateTUser(User user);

    //TODO 删除用户
    int deleteTUserByUid(Long uid);
}
